﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using System.Xml.Serialization;

namespace NetBay.Core.BusinessEntities.Workflow.Rules
{
    [XmlTypeAttribute(AnonymousType = true, TypeName = "If")]
    [Serializable]
    public class If
    {
        [XmlArray("States")]
        [XmlArrayItem("State")]
        public ObservableCollection<State> States { get; set; }

        [XmlAttributeAttribute]
        public Operator Operator { get; set; }
    }
}
